package com.sxdz.models.common

import groovy.transform.CompileStatic
import groovy.transform.TypeChecked

/**
 * Created with IntelliJ IDEA.
 * User: 张斌
 */
@CompileStatic
@TypeChecked
class RollPage<T> {

    List<T> recordList //记录列表

    Integer iTotalRecords //记录总数

    Integer iTotalDisplayRecords //显示记录总数

    Integer pageSize //分页参数

    Integer pageNum //当前页数

    Integer getPageSum() {
        (int) Math.ceil(this.iTotalRecords / this.pageSize) //+ ((this.iTotalRecords % this.pageSize==0)?0:1)
    }
}
